package com.zycfc.zsf.boot.redis.enums;

public enum CacheTypeEnum
{
    LOCAL, 
    REDIS;
    
    private static final String ILLEGAL_CACHE_TYPE = "\u975e\u6cd5\u7684\u7f13\u5b58\u7c7b\u578b\uff1a";
    
    public static void check(final String paramCacheType) {
        for (final CacheTypeEnum cacheType : values()) {
            if (cacheType.name().equals(paramCacheType)) {
                return;
            }
        }
        throw new IllegalArgumentException("\u975e\u6cd5\u7684\u7f13\u5b58\u7c7b\u578b\uff1a" + paramCacheType);
    }
}
